//
//  GWRecommendUserCell.m
//  百思不得姐
//
//  Created by qianfeng on 16/3/2.
//  Copyright © 2016年 高炜. All rights reserved.
//

#import "GWRecommendUserCell.h"
#import "GWRecommenUser.h"
#import <UIImageView+WebCache.h>
@interface GWRecommendUserCell ()
@property (weak, nonatomic) IBOutlet UIImageView *headerView;
@property (weak, nonatomic) IBOutlet UILabel *nameView;
@property (weak, nonatomic) IBOutlet UILabel *fansView;

@end
@implementation GWRecommendUserCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setUser:(GWRecommenUser *)user
{
    _user =user;
    self.nameView.text =user.screen_name;
    self.fansView.text =[NSString stringWithFormat:@"%@人关注",user.fans_count];
    [self.headerView sd_setImageWithURL:[NSURL URLWithString:user.header] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
}
@end
